﻿using System.Collections.ObjectModel;

namespace ProdControls.Interfaces
{
    internal interface ISelectionItem
    {
        /// <summary>
        ///   Gets a value that indicates whether an item is selected.
        /// </summary>
        /// <value> <c>true</c> if selected; otherwise, <c>false</c> . </value>
        bool IsSelected(string text);

        /// <summary>
        ///   Determines whether the specified index is selected.
        /// </summary>
        /// <param name="index"> The index. </param>
        /// <returns> <c>true</c> if the specified index is selected; otherwise, <c>false</c> . </returns>
        bool IsSelected(int index);

        /// <summary>
        ///   Deselects any selected items and then selects the current element
        /// </summary>
        /// <param name="text"> The text of the item to select. </param>
        void Select(string text);

        /// <summary>
        ///   Deselects any selected items and then selects the current element
        /// </summary>
        /// <param name="index"> The index of the item to select. </param>
        void Select(int index);

    }
}